CREATE TABLE [dbo].[TTDESC_COCO]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_DESC] [dbo].[TD_VC_008] NOT NULL,
[NO_DESC] [dbo].[TD_VC_100] NULL,
[TI_DESC] [dbo].[TD_VC_001] NULL,
[TI_DATO] [dbo].[TD_VC_001] NULL,
[NU_LONG] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TTDESC_CO__NU_LO__0E64051E] DEFAULT ((0)),
[NU_DECI] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TTDESC_CO__NU_DE__0F582957] DEFAULT ((0)),
[ST_TABL] [dbo].[TD_VC_001] NULL,
[ST_RANG] [dbo].[TD_VC_001] NULL,
[NU_MINI] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TTDESC_CO__NU_MI__104C4D90] DEFAULT ((0)),
[NU_MAXI] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TTDESC_CO__NU_MA__114071C9] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTDESC_CO__CO_US__12349602] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTDESC_CO__FE_US__1328BA3B] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTDESC_CO__CO_US__141CDE74] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTDESC_CO__FE_US__151102AD] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTDESC_COCO] ADD CONSTRAINT [PK__TTDESC_C__272D578117F85C50] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_DESC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTDESC_COCO] ADD CONSTRAINT [FK__TTDESC_CO__CO_EM__5091BB2E] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
